package com.hetao.assist.service.dal.impl;

import com.github.pagehelper.Page;
import com.hetao.assist.model.Stock;
import com.hetao.assist.service.dal.StockService;
import com.hetao.assist.service.dal.base.BaseNewServiceImpl;

import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl extends BaseNewServiceImpl<Stock, Integer> implements StockService {

    @Override
    public Page<Stock> pageByDate(String date, int pageNum, int pageSize) {
        Stock stock = new Stock();
        stock.setDate(date);
        return page(stock, pageNum, pageSize, "t.id desc");
    }
}
